'''已知字符串str = 'skdaskerkjsalkj'请统计该字符串中每个字母出现的次数'''
str = 'skdaskerkjsalkj'
li_alphabet = list('abcdefghijklmnopqrstuvwxyz')
print(li_alphabet)
li_str = list(str)
print(li_str)

for i in li_alphabet:
    count = 0
    for j in li_str:
        if j == i:
            count += 1
    if count == 0:
        None
    else:
        print(f'字母{i}出现次数为{count}')